package test;

/**
 * @Author: Dang Qi
 * @Date: 2021/3/28  18:22
 * @Description: 测试匿名内部类，需要将局部变量声明为final
 */
public class Main3 {
    static int[][] dp = null;
    public static void main(String[] args) {

        int n = 3, m = 3;
        int[][] q = {{2,2}};

    }


    public static int find(int i, int j, int[][] q){

        return 0;

    }



    public static int find2(int[] nums){
        int n = nums.length;
        int dp_i_1 = 0, dp_i_2 = 0;
        int dp_i = 0;
        for(int i = n-1; i>= 0; i--){
            dp_i = Math.max(dp_i_1, nums[i] + dp_i_2);
            dp_i_2 = dp_i_1;
            dp_i_1 = dp_i;
        }
        return dp_i;
    }
}
